import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'



// css样式需要全部引入
  import './assets/css/global.css'
  import 'element-ui/lib/theme-chalk/index.css'
  import element from './element/index'
  // 引入table自适应宽度插件
  import AFTableColumn from 'af-table-column'
  Vue.use(element)
  Vue.use(AFTableColumn)

// 消除element警告
import 'default-passive-events'

 // 引入 ECharts 主模块
 let echarts = require('echarts/lib/echarts');
 // 引入折线图/柱状图等组件
 require('echarts/lib/chart/line')
 require('echarts/lib/chart/bar')
 require('echarts/lib/chart/radar')
 // 引入提示框和title组件，图例
 require('echarts/lib/component/tooltip')
 require('echarts/lib/component/title')
 require('echarts/lib/component/legend')
 require('echarts/lib/component/legendScroll')//图例滚动
 require('echarts/lib/component/markPoint')
 require('echarts/lib/component/markLine')
 require('echarts/lib/component/toolbox')
 require('echarts/lib/component/markArea')
 //vue全局注入echarts
 Vue.prototype.$echarts = echarts

// 警告提示,消息提示的环境配置
Vue.config.productionTip = process.env.NODE_ENV === "production";


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
